package com.qs.base.utils;
/**
* 目标语言工具
* @Author ltzz
* @Date 2019/8/22
*/
public class TranslateLanguageUtil {
    public static String languageToSymbol(String languageCN) {
        String result = "en";
        switch (languageCN) {
            case "中文":
                result = "zh";
                break;
            case "英语":
                result = "en";
                break;
            case "粤语":
                result = "yue";
                break;
            case "文言文":
                result = "wyw";
                break;
            case "日语":
                result = "jp";
                break;
            case "韩语":
                result = "kor";
                break;
            case "法语":
                result = "fra";
                break;
            case "西班牙语":
                result = "spa";
                break;
            case "泰语":
                result = "th";
                break;
            case "阿拉伯语":
                result = "ara";
                break;
            case "俄语":
                result = "ru";
                break;
            case "葡萄牙语":
                result = "pt";
                break;
            case "德语":
                result = "de";
                break;
            case "意大利语":
                result = "it";
                break;
            case "希腊语":
                result = "el";
                break;
            case "荷兰语":
                result = "nl";
                break;
            case "波兰语":
                result = "pl";
                break;
            case "保加利亚语":
                result = "bul";
                break;
            case "爱沙尼亚语":
                result = "est";
                break;
            case "丹麦语":
                result = "dan";
                break;
            case "芬兰语":
                result = "fin";
                break;
            case "捷克语":
                result = "cs";
                break;
            case "罗马尼亚语":
                result = "rom";
                break;
            case "斯洛文尼亚语":
                result = "slo";
                break;
            case "瑞典语":
                result = "swe";
                break;
            case "匈牙利语":
                result = "hu";
                break;
            case "繁体中文":
                result = "cht";
                break;
            case "越南语":
                result = "vie";
                break;
        }
        return result;
    }
}
